<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
    crossorigin="anonymous">
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    body {
      width: 2050px;
    }

    h1 {
      text-align: center
    }

    canvas {
      background-color: black;
    }

    #line-control {
      padding: 20px;
      text-align: center
    }

    p {
      font-size: 1em;
      color: wheat;
      background-color: rgba(30, 30, 218, 0.719);
      width: fit-content;
    }

    .dash-array-line-dash-display {
      display: none;
    }

    select,
    input {
      width: 200px !important;
    }

    .text {
      color: crimson
    }

    .webgl {
      float: left;

    }

    #webgl {
      border-right: 2px solid red
    }

    .canvas {
      float: right
    }
  </style>
</head>

<body>
  <h1>WebGL & Canvas Performance Test </h1>

  <div id="line-control">
    <select class="custom-select line-type-select">
      <option value="normal-line" selected>normal-line</option>
      <option value="dash-array-normal">dash-array-normal</option>
      <option value="dash-array-border">dash-array-border</option>
    </select>
    <select class="custom-select line-join">
      <option value="null" selected>line join Null</option>
      <option value="round">line join Round</option>
    </select>
    <input name="line-width" type="number" placeholder="Line Width">
    <input name="line-number" type="number" placeholder="Line Number">
    <div id="dash-array-line-dash" class="dash-array-line-dash-display">
      <input id="width" name="solid-length" type="number" placeholder="Solid Length">
      <input id="number" name="empty-length" type="number" placeholder="Empty Length">
    </div>
    <button class="btn btn-primary btn-sm">submit</button>
  </div>

  <div class="webgl">
    <h2>WebGL </h2>
    <button class="btn btn-default">start</button>
    <p>
      <span>Time: </span>
      <span class="text" id="webglTime"></span>
    </p>
    <canvas id="webgl" width="1024" height="1024"></canvas>
  </div>

  <div class="canvas">
    <h2>Canvas </h2>
    <button class="btn btn-default">start</button>
    <p>
      <span>Time: </span>
      <span class="text" id=canvasTime></span>
    </p>
    <canvas id="canvas" width="1024" height="1024"></canvas>
  </div>

  <script src="./lib.js"></script>
  <!-- <script src="./../../lib/webgl-utils.js"></script>
  <script src="./../../lib/cuon-utils.js"></script>
  <script src="./../../lib/webgl-debug.js"></script>
  <script src="./../../lib/cuon-matrix.js"></script> -->
  <!-- <script src="./index.js"></script> -->
  <!-- <script src="./miter.js"></script> -->
  <!-- <script src="./round.js"></script> -->
  <!-- <script src="./RoundJoinLine.js"></script> -->
  <!-- <script src="./canvas.js"></script> -->
  <script src="./index03-21.js"></script>
  <!-- <script src="./generalLine.js"></script> -->
  <!-- <script src="./dashArray.js"></script> -->
  <!-- <script src="./test.js"></script> -->
</body>

</html>